package com.xhwl.logistics.converter.mapstruct;

import com.xhwl.common.pojo.cent.sdata.Project;
import com.xhwl.logistics.bo.cent.ProjectBO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueMappingStrategy;

@Mapper(nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT)
public interface CentProjectConverter {

    @Mapping(source = "id", target = "projectId")
    @Mapping(source = "name", target = "projectName")
    @Mapping(source = "code", target = "projectCode")
    ProjectBO project2ProjectBO(Project project);

}
